package com.qw.qrweb.mapper;

import com.qw.qrweb.model.entity.SettingEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface SettingMapper {

    @Update("update setting set `value` = #{title} where `key` = 'title' ")
    int changeTitle(String title);

    @Select("select * from setting where `key` = 'title'")
    SettingEntity getTitle();

}
